// 引入地址、端口、一级路由
import {
  address,
  pathApi
} from "@/api/path";
// 引入 axios
import axios from "axios";
// 登录请求
const loginRequest = (condition, callback) => {
  condition.loginType = 2;
  axios({
    data: condition,
    method: "post",
    headers: {
      "Content-Type": "application/json"
    },
    url: `${address}${pathApi}/login/submit`
  }).then(function (res) {
    callback(res.data)
  });
}
// 查询账套
const queryZhangTao = (condition, callback) => {
  axios({
    data: {
      loginId: condition,
    },
    method: "post",
    headers: {
      "Content-Type": "application/json"
    },
    url: `${address}${pathApi}/login/findAccountMt`
  }).then(function (res) {
    callback(res.data)
  });
}
export {
  loginRequest,
  queryZhangTao,
}
